﻿using AutoMapper;
using Furion.DynamicApiController;
using System.Threading.Tasks;
using todo.EntityFramework.FromBody;
using todo.EntityFramework.ViewModels.UI;
using todo.books.IServices;

namespace todo.books.API
{
    public  class BooksController : IDynamicApiController
    {
       
        private readonly IDoBooksServices _dar;
        public BooksController(IDoBooksServices dar)
        {
            _dar = dar;
        }
        public  Task<AdminUiCallBack> AddBooks(FMBooksInsertModel entity) 
        {
            return _dar.AddBooks(entity);
        }       
    }
}
